/***
 * 通用启动入口
 */

import Vue from 'vue'
import App from './App.vue'
import  {createRouter} from '@/router'
import {createStore} from '@/store'
import VueMeta from 'vue-meta'
 
Vue.use(VueMeta)
Vue.mixin({
    metaInfo: {
        titleTemplate: '%s - 页面标题'
    }
  })

export function createApp () {
    const router = createRouter()
    const store = createStore()
    const app = new Vue({
        router,
        store,
        render: h => h(App)
    })
    return { app,router,store}
}
